﻿import QtQuick 2.0
import QtQuick.Controls 1.4
import QtQuick.Controls.Styles 1.4

//推荐页面
Item {
    id:recommendId
    height: 700
    width: 500

    /*ScrollControl{
        width: parent.width
        height: 600
    }
    */
    ScrollView {
        id:control
        width: recommendId.width;
        anchors.top: parent.top
        anchors.bottom: parent.bottom
        MouseArea{
            id:ma
            anchors.fill: parent
            hoverEnabled: true
            onWheel: {
                console.log("wheel changed",wheel.angleDelta)
            }
        }
        style: ScrollviewStyle  {
            id:sStyleId
            scrollbarWidth:10
            hasMouse: ma.containsMouse
            scrollbarBgColor: "#7F7F7F"
        }
        verticalScrollBarPolicy: Qt.ScrollBarAsNeeded
        horizontalScrollBarPolicy: Qt.ScrollBarAlwaysOff
        ScrollItem{
            id:xx
            width: recommendId.width
        }
    }
}
